package io.wongxd.solution.compose.custom.views.menu_fab

import androidx.compose.runtime.Composable
import androidx.compose.runtime.MutableState
import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.remember

/**
 * 菜单的状态
 * State of the [MenuFloatingActionButton]
 */
class MenuFabState {
    /**
     * 菜单内部的展开折叠状态
     * State of the [MenuFloatingActionButton]
     */
    val menuFabStateEnum: MutableState<MenuFabStateEnum> =
        mutableStateOf(MenuFabStateEnum.Collapsed)
}

/**
 * 创建一个[remember]的[MenuFabState]
 * Create the [MenuFabState] of [remember]
 */
@Composable
fun rememberMenuFabState() = remember { MenuFabState() }